package com.linkage.order.repository;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.linkage.order.pojo.Order;
/**
 * 
 * @author XiaMingYu
 *
 */
@Repository
public interface OrderRepository {
	public List<Order> queryAll();
	public List<Order> query(String orderId,Date orderTime,double total,int status);
	public List<Order> queryItem(String orderId,Date orderTime,double total,int status,double subTotal);
	public void saveOrder(Order order);
	public void deleteOrder(String orderId);
	public Order findOrderById(String orderId);
	public void payOrder(String orderId, int userId);
	public double calTotal(int userId ,int bookIdquantity );
	public void confirm(String orderId);
	//public Order loadOne(@Param("orderId") String orderId);
}
